Moved format_categories to cip_categories.js