ebook and question pagination with Ajax