Use window.scrollY instead of document.body.scrollTop