Update app.js
Clean up redundant code
Merge pull request #12 from xasos/gh-pages

Code cleanup