new tpls from js