Changed "index" to redirect better.

(And added the <?js back to login.html.