Cleaned code in app.js