modified jquery to handlebars