Add scroll event handler to window