How about putting it in parenthesis? `'(MyApp.templates['<%= name %>'] = <%= handlebars %>)'` feels more like a wrapper anyway.