convert html templates to js using html2js