adapt to new ShadowDOM Polyfill scoping
simple test for window.addEventListener