Small changes to app.js and index.js