fixing jshint errors adding Handlebars global to the helpers js, correcting regex

Note: I'm guessing as to the regular expressions intention