Fix minor bugs on AJAXPagination library