reformat tier1 categories into js Object