Update app.js

Fixed issue no 5.