simplify app.js