Scroll window on pagination

I´ve added a window.scrollTo to make the visualization of the pages easier. This way is not necessary to manually scroll to top and bottom again.