API change: onPageReady now only carries the page index