Fixed pagination on home page and jQuery. Must fix pagination on index page