template moved from js to html