IE doesn't have window.scrollY

Use the recipe from
https://developer.mozilla.org/en-US/docs/Web/API/Window.scrollY instead.