backported delegate js event fix for elementlist type elements (e.g. click events for checkboxes in repeat groups were not working)