TBR: Fix identity server cancel button.

Change-Id: I769598657c47a5781fedceeba1ce9d7dbb9483de
diff --git a/services/identity/internal/templates/caveats.go b/services/identity/internal/templates/caveats.go
index 1535655..047de74 100644
--- a/services/identity/internal/templates/caveats.go
+++ b/services/identity/internal/templates/caveats.go
@@ -120,7 +120,9 @@
     $('.expiry').val(moment().add(1, 'd').format('YYYY-MM-DDTHH:mm'));
 
     // Activate the cancel button.
-    $('#cancel').click(window.close);
+    $('#cancel').click(function(){
+      window.close();
+    });
   });
   </script>
 </head>
@@ -215,7 +217,7 @@
       </div>
 
       <div class="action-buttons">
-        <button class="button-tertiary" id="cancel">Cancel</button>
+        <button class="button-tertiary" id="cancel" type="button">Cancel</button>
         <button class="button-primary" type="submit">Bless</button>
       </div>