Event caller/listener extension for the HTML5 runtime