Categories JS fix