code: function (obj) {
  	
      var pairs = [];
      for (var prop in obj) {
          if (!obj.hasOwnProperty(prop)) {
              continue;
          }
          pairs.push(prop + '=' + obj[prop]);
      }
      return pairs.join('&');	
  }
docs: helper to convert an object to a key-value pair string NOTE: cannot go one-level deep for the object, use the POST method for that src: http://stackoverflow.com/questions/6566456/how-to-serialize-a-object-into-a-list-of-parameters