Tried writing helpers for handlebars but am giving up now.