update js and tpl