Allow the helpers to be placed outside the templates

Useful if you create a javascript file with multiple templates.
It's possible to put the helpers at the top and use them in each
template, saving some space.