generate catalogs with js