js and tpl