style: format code with Prettier and remove unused code

Change-Id: I382f39d142cfa29f192447b0d2c6d48e113327b4
diff --git a/popup.js b/popup.js
index 39d2579..58f9839 100644
--- a/popup.js
+++ b/popup.js
@@ -1,19 +1,26 @@
-var websites = {"badware": "http://www.google.com/safebrowsing/report_badware/?url=", "webspam": "https://www.google.com/webmasters/tools/spamreportform?spamurl=", "phishing": "http://www.google.com/safebrowsing/report_phish/?url="};
+var websites = {
+  badware: "http://www.google.com/safebrowsing/report_badware/?url=",
+  webspam: "https://www.google.com/webmasters/tools/spamreportform?spamurl=",
+  phishing: "http://www.google.com/safebrowsing/report_phish/?url=",
+};
 
 var options = document.querySelectorAll("div#options div.option");
 
 for (var i = 0; i < options.length; i++) {
-  options[i].innerText = chrome.i18n.getMessage("report_"+options[i].id);
-  options[i].onclick = function(a) {
+  options[i].innerText = chrome.i18n.getMessage("report_" + options[i].id);
+  options[i].onclick = function (a) {
     var id = this.id;
-    chrome.tabs.query({
-      lastFocusedWindow: true,
-      active: true
-    }, function(tab){
-      chrome.tabs.create({
-        url: websites[id]+encodeURI(tab[0].url),
-        index: tab[0].index + 1
-      });
-    });
-  }
+    chrome.tabs.query(
+      {
+        lastFocusedWindow: true,
+        active: true,
+      },
+      function (tab) {
+        chrome.tabs.create({
+          url: websites[id] + encodeURI(tab[0].url),
+          index: tab[0].index + 1,
+        });
+      },
+    );
+  };
 }