Added doc/eventMagic.md
Implamented EM_CANCEL and EventMagic
Implamented JavaScript support for EventMagic