fix tpls js problem