put pagination in global_search.js, this respects the filters on pagination queries