Ideally the dependency on jQuery and this function would be contained within a Backbone View, not a template. Since this file is so small I think we can let this one by, but if any more work is done here I'd prefer the Javascript logic to be separate.