JSLinting of several app files

Correct several app files and handlebarsHelper.js file for JS errors.
Merge pull request #2 from philbirnie/master

JS Lint