Refactored code to comply with Google Style Guides

This commit refactors JS, MD and Bash files in order to comply with the
Google style guides.

Change-Id: I5bc9a175d2400fa1095ba9eb1c8cff3ebfef4b8f
diff --git a/src/thread_inject.js b/src/thread_inject.js
index c3b484e..b94f405 100644
--- a/src/thread_inject.js
+++ b/src/thread_inject.js
@@ -9,30 +9,30 @@
 };
 
 var intersectionOptions = {
-  threshold: 1.0
-}
+  threshold: 1.0,
+};
 
 chrome.storage.sync.get(null, function(items) {
-  var path = document.location.pathname.split("/");
-  if (path[path.length - 1] == "new" ||
-      (path.length > 1 && path[path.length - 1] == "" &&
-          path[path.length - 2] == "new")) {
+  var path = document.location.pathname.split('/');
+  if (path[path.length - 1] == 'new' ||
+      (path.length > 1 && path[path.length - 1] == '' &&
+       path[path.length - 2] == 'new')) {
     return;
   }
 
-  var redirectLink = document.querySelector(".community-console");
+  var redirectLink = document.querySelector('.community-console');
   if (items.redirect && redirectLink !== null) {
     window.location = redirectLink.href;
   } else {
     var button =
-        document.querySelector(".thread-all-replies__load-more-button");
+        document.querySelector('.thread-all-replies__load-more-button');
     if (items.thread && button !== null) {
       intersectionObserver =
           new IntersectionObserver(intersectionCallback, intersectionOptions);
       intersectionObserver.observe(button);
     }
     var allbutton =
-        document.querySelector(".thread-all-replies__load-all-button");
+        document.querySelector('.thread-all-replies__load-all-button');
     if (items.threadall && button !== null) {
       intersectionObserver =
           new IntersectionObserver(intersectionCallback, intersectionOptions);