bind to both window and document (as scroll event doesn't bubble), fix issue #3