Updated scrollTo and scrollTop methods.