Fix handlebars amd output compatibility with IE8