Extract scrolling to a function. Call it on load.