fixing jshint errors adding: handlebars global, correcting regex

NOte: I'm guessing as to the reg exps intention