Update script.js

Created logIn function for storing controllers for pop-up window.