Simplified the app.js