templateedit js added