category add js function done