submit template js operational