scrollTo: moved jQuery selection into the $timeout to prevent the error "Cannot read property 'top' of undefined"