group pages with js