edited app.js