Update app.js

Changes made in app.js to solve the error no 5,