just tweaked it in javascript for now so that adding contenders to an empty contender list is possible