Use pageYOffset in scrollTop for IE compatibility.

Both scrollY and pageYOffset are defined in the CSSOM[1], but only
pageYOffset is supported by Internet Explorer 10.

[1] http://www.w3.org/TR/cssom-view/