updating js and tpl