Simplify app.js