Free GL eventhandlers

When user deletes a WebGL context, disconnect all event handlers associated with that context so that phantom GL context loss events or similar are not passed to user from contexts that are already supposed to be freed.
Yes, but you need `if (typeof JSEvents === 'object') ...`