Finished scrollTo function