took care of corner cases + refactored code in app.js. Thouroughly tested
refactoring of index.html
moved css and js for index.html into public/style.css and public/scripts.js respectively