some code cleanup
Merge pull request #799 from onepercentclub/feature/cleanup-js

Cleanup JS in app.js