migrated catefories.js to new socketAL format