category check by _id in js