changed app.js a bit