Beginning of patch to make x3dom work with jQuery event delegation