fix js messing around with the event handler stack 

...when destroying the DOM-Element while the stack is called

minified version manually patched, TODO repack