minor modifications to app.js