Switch to JQuery based login.

Refs #6