docs: function sn_net_parseURLQueryTerms(search) {
      var params = {};
      var pairs;
      var pair;
      var i, len, k, v;
      if (search !== undefined && search.length > 0) {
        if (search.match(/^\?/)) {
          search = search.substring(1);
        }
        pairs = search.split("&");
        for (i = 0, len = pairs.length; i < len; i++) {
          pair = pairs[i].split("=", 2);
          if (pair.length === 2) {
            k = decodeURIComponent(pair[0]);
            v = decodeURIComponent(pair[1]);
            if (params[k]) {
              if (!Array.isArray(params[k])) {
                params[k] = [ params[k] ];
              }
              params[k].push(v);
            } else {
              params[k] = v;
            }
          }
        }
      }
      return params;
    }