I'm trying to find a way to add functionality to Java Script's main event loop, from which the all its events are evaluated.
//every event based application has something similar at heart,
//usually, somewhere in the main function
//process all events
AbstractEvent **a = eventStack.begin()-1;
application.processEvent(*a); //could be an "onclick","onmouseenter", exit, etc...
//for Java Script, can I make stuff happen here