Try browsing straight to the URL in all of your browsers.

http://localhost:50819/Test/login.as...sword=password

Do you get what you expect? If you're getting what you expect, then the javascript should work. You may also want to inspect the actual status coming back. If it's not 200, what is it?