Emit events on DOM element interaction using data-emit attributes.