Refactored project structure. Moved login functionality to own js file.
Refactored project structure a bit more