Register the scroll handler when the document is ready
Don't load the window height twice