added ability to call customAJAX function if defined so that we don't have to have links, but can have a proper js function to get the next page of results