title: Stuck getting For Loop to execute right on the first iteration
body: <p>I have tried several variations of the following if statement without any luck. I'm sure it is a simple mistake. </p>
  
  <p>Here is the code -</p>
  
  <pre><code>this.params = function (request) {
      var queryParams;
      queryParams = request.urlQuery;
      var fragments = queryParams.split('&amp;');
      return {
          "has_query_parameters": true,
          "query_parameters": (function () {
              var results;
              results = [];
              if (queryParams.length != 0) {
                  for (i in fragments) {
                      var keyvalue = fragments[i].split('=')
                      name = keyvalue[0];
                      if (i === 1) {
                          results.push(keyvalue[0] + '=" &amp; ' + '$' + keyvalue[0]);
                      } else {
                          results.push('&amp;' + keyvalue[0] + '=" &amp; ' + '$' + keyvalue[0]);
                      }
                  }
              }
              return results.join(" &amp; \"");
          })()
      };
  };
  </code></pre>
  
  <p>For the If statement where it says <code>i === 1</code> is where the issue is. What I need to happen is have that execute if it is the first fragment. Everything I have tried so far has failed and it executes the else instead. </p>
  
  <p>Here is the queryParams variable:  </p>
  
  <pre><code>client_id=CLIENTIDHERE&amp;response_type=code&amp;scope=SCOPESHERE&amp;redirect_uri=REDIRECTURIHERE&amp;state=STATEHERE  
  </code></pre>