Pagination with ajax on php without any framework