Added Javascript pagination for each category