Added an optional callback thats activated when the page is changed.

I've added a callback (onPageDisplay) which is activated when the page is changed. It is passed the current page number the user is on.