completed the JS model view split. also small fix for css in loginpage.html