This version is old school.
Please find jQuery plugins on npm.
wPaginate jQuery Plugin
by Websanova
A jQuery pagination plugin for simply setting up pagination on the fly. The plugin allows you to set how many pages are displayed at a time on a sliding scale and also has ajax support out of the box.