template edit js added