This version is old school.
Please find jQuery plugins on npm.
Filterable Pagination
by Bryan Cua
$.fn.paginate plugin is a lightweight jQuery plugin that allows you to perform pagination on any list or table. It also allows setting which entries to skip or to show.