trying window.onScroll in place of document.documentElement.scrollTop and document.body.scrollTop