More app.js changes