code: function createNativeEvent(type, debug) {
          var event = new Event(type);
          event.debug = debug;
  
          // Make the "target" writable
          Object.defineProperty(event, 'target', {
              writable: true
          });
  
          return event;
      }
docs: Creates a native Event object, for browsers that support it
  @returns {Event}