code: function toQueryString(params, id) {
      var paramsString = '';
      for (var key in params) {
        if (params.hasOwnProperty(key)) {
          paramsString += '&' + key + '=' + encodeURIComponent(params[key]);
        }
      }
      return 'zws-id=' + id + paramsString;
    }
docs: Helper function that takes params hash and converts it into query string
  
  @param {object} params
  @param {Number} id