organize app.js
Merge branch 'master' into gh-pages