Fixed 'duration' not being passed as an argument to the scrollTo function.