Compare indexOf to -1

In this case, archive.eclipse.org is at position 0.

Change-Id: I578ae6d9fd33ba50f3c62f1d2c54bfa2eacaf566
Signed-off-by: Denis Roy <denis.roy@eclipse-foundation.org>
diff --git a/download.eclipse.org/downloads_directory.js b/download.eclipse.org/downloads_directory.js
index fc42157..8bf3ead 100644
--- a/download.eclipse.org/downloads_directory.js
+++ b/download.eclipse.org/downloads_directory.js
@@ -16,12 +16,12 @@
 
     $('.downloads-directory').submit(function() {
       var action = "archive";
-      if (document.domain.indexOf("archive.eclipse.org") > 0) {
+      if (document.domain.toLowerCase() === "archive.eclipse.org") {
         action = "delete";
       }
-        var c = confirm("Are you sure you would like to "+ action +" the selected item(s)?");
-        return c;
+      var c = confirm("Are you sure you would like to "+ action +" the selected item(s)?");
+      return c;
     });
   });
-  
+
 })(jQuery, document);
\ No newline at end of file