Updated app.js and index.html