Using an Emitter object as an event pipe instead of triggering events on DOM elements with jQuery.