Brought back main.js, better design in user/pass, gets events