Fix up searching for .pagecount in pager-custom-controls.js

We should search for .pagecount inside the options.pager widget, not globally.
Use filteredPages instead of totalPages in pager-custom-controls.js

This fixes the handling the pager handling when filtered.