Code changes in app.js and index.html