cleaned app.js