optimize number_format helper in Handlebars