Reusable Login component for Xpages
caused by the comma at the end of this line in the login() function:
"password" : dojo.byId('#{id:password}').value,