changed the scrollTo behavior

the scrollTo option can now be a function instead of a number, this would allow to have some custom behavior when the data is loaded.