Slurps template into a JavaScript string for use with Sprockets JST functionality