Upgrade app.js