Moved login.js to external file.