I feel I can improve on a lot of things. But I am between my semester exams, so this is the best I can do for now. I believe I can do a lot better.
No setup required.
older and newer pagination buttons will only be enabled when there are more than 9 pages.
Please use a local server and open the index.html in a browser.