[JS] Phonegap push fixes

Fix invalid use of callbacks
Update login calls with set timeouts for issues with using in app
browser