remove javascript template code