emitter.js upgraded to enable all features

You can, of course, modify it to disable unneeded features.