separated js from html, updated arduino code for login page, updates to index & js files, updated app.js and added mocks for testing