code: function globalEventHandler(event) {
      if (listeners[event.type]) {
        listeners[event.type].forEach(function(currentHandler) {
          currentHandler.call(this, event);
        }, this);
      }
    }
docs: Global event handler that dispatches the registered handlers in the
  service.
  @param {!Event} event Event object passed in by the browser