Use pageYOffset for better cross-browser acceptance