Update script.js

Controllers for login window stored in logIn function.