fixed app.js errors