Update app.js

last working version