update js tmpl