Re-factored application.js with handlebarsHelper function, some naming style changes