Minor fix in candidate.js