[eluser]Twisted1919[/eluser]
Using PHP to generate/create javascript code is just plain stupid .
The javascript code always needs to reside separately in another file(for re-usability), or if u want in the view file at very bottom, there is no need to handle the browser events in the controller/model, that's why the time used to develop the javascript library was a waste. They should just create an auth library instead, or to fix the issue with GET that we all have.