TypeError: window.scroll is not a function