JSLinting of several app files

Correct several app files and handlebarsHelper.js file for JS errors.