Fixing app.js (demo)