This is also an older method. Use:
`window.addEventListener('scroll', function (e) {`
And, on the closing brace:
`}, false);`