Update index.html

Change pagination to work with classes instead of ids for better abstraction