Compiles html templates to JSONP style