compile templates for the end use with jquery and underscore.js