Made delete and add new food category work- javascript