A browser mixin that makes emitting CustomEvent objects really simple.