Updated scrollTo and scrollTop functions.