code: function on(emitter, eventName, handler, context) {
    handler = context ? handler.bind(context) : handler;
    emitter.addEventListener(eventName, handler);
    return handler;
  }
docs: Register to receive events.