title: javascript keyword search
body: <p>When I only search 1 keywordName (ie: "macc") the program works, it opens 1 new tab. 
  When I search 2 words ie: "miller macc" I get an infinite loop of opening tabs. someone help!!!</p>
  
  <pre><code>var keywordName = "miller macc";
  var split = keywordName.split(" ");
  var tFunction = "twitterScan()";
  var tweet = new Array();
  var tweetName = new Array();
  
  var t;
  
  function twitterScan() {
  for (var i = 0; i &lt; split.length; i++) {
      tweetName[i] = document.getElementsByClassName("fullname js-action-profile-name show-popup-with-id")[0].innerHTML;
      tweet[i] = document.getElementsByClassName("js-tweet-text")[i].innerHTML;
  
      var tweetMatch = tweet[0].match(split[i]);
      if (tweetMatch != null &amp;&amp; tweetMatch == split[i]) {
          document.getElementsByClassName("twitter-timeline-link")[0].click();
          clearTimeout(t);
      } else {
          location.reload(true);
      }
  }
  }
  t = setTimeout(tFunction, 200);
  </code></pre>