Position pages with CSS according to JSON index