move tpls in js