code: function LeipzigEvent(name, data) {
      var leipzigEvent = undefined;
  
      if (window.CustomEvent) {
        leipzigEvent = new CustomEvent(name, {
          detail: data,
          bubbles: true,
          cancelable: true
        });
      } else {
        // For Internet Explorer & PhantomJS
        leipzigEvent = document.createEvent('CustomEvent');
        leipzigEvent.initCustomEvent(name, true, true, data);
      }
  
      return leipzigEvent;
    }
docs: Helper function for creating custom events
  @private