fixed app.js
Merge branch 'appjsfix' into dev. Fixes Issue #2