Pagination Script for review

Hello,

I made a JS script for manual pagination (array of pages) with dynamic pages ribbon.
I would like your reviews regarding it and what should i change or improve ?

Link : https://github.com/SalimoDz/Pagination

Thanks in advance.