fix the bug in createCategory and Add the jsMessage