function encode(name, value) {
    return "&" + encodeURIComponent(name) + "=" + encodeURIComponent(value).replace(/%20/g, "+");
  }
Modified
Triggers browser event
@param String eventName
@param Object data - Add properties to event object