def setEventListener(element, listener):
    JS("""
    @{{element}}['__listener'] = @{{listener}};
    """)
Register an object to receive event notifications for the given
dataset/ETHPy150Open pyjs/pyjs/pyjswidgets/pyjamas/DOM.browser.py/setEventListener