simplified app.js