move tpl html to js module