added ability to pass in a base url, useful if paginating an ajax response, and the pagination url is different then the actual page