Update script.js

Created $logIn variable for storing pop-up login window. Added controller for fading away the login window when click on login or cancel.