An example of a custom login routine using the Javascript API in WAK4 Dev 04-2013