I have this template script
You can use ajax to load the template file.
With jQuery:
$.get("user_template.js", function(template_text){ var template = Handlebars.compile(template_text); // more things });