Use window.addEventListener, so as to not mess with any other window.onscroll handlers. (Closes #40)