Slightly modified the scrolltop function to center on the screen better.
Removed unnecessary variable