refixed app.js