added template js