Using the template from js in html