Fixes js syntax for badge handlebars function.