Dropping explicit `window.` when calling addEventListener.