Made some changes to index.html and refactored quite a bit of code in app.js.