Remove console.dir
Make end browserify compatible
Rename emitter
Remove onEvent from example
Simplify API