Candidate JS fix