Minor refactor in index.html and the main app.js file