Restructured index.html implemented working pagination
Removed server-side paging, using client paging instead
Changed mode