minor fixes to competition.js