Update app.js

fix for #13