[JS] Fixes login routine on WP8.1 devices