added login deps to jquery and CryptoJS, seperated js into seperate file