code: function triggerEvent(eventType, options) {
      var event, key;
  
      options = options || {};
  
      eventType = 'opbeat' + eventType.substr(0,1).toUpperCase() + eventType.substr(1);
  
      if (document.createEvent) {
          event = document.createEvent('HTMLEvents');
          event.initEvent(eventType, true, true);
      } else {
          event = document.createEventObject();
          event.eventType = eventType;
      }
  
      for (key in options) if (hasKey(options, key)) {
          event[key] = options[key];
      }
  
      if (document.createEvent) {
          // IE9 if standards
          document.dispatchEvent(event);
      } else {
          // IE8 regardless of Quirks or Standards
          // IE9 if quirks
          try {
              document.fireEvent('on' + event.eventType.toLowerCase(), event);
          } catch(e) {}
      }
  }
docs: To be deprecated