adjusted app.js