Minor cleanups in doc
Rewrote microevent in JS