Fix tournaments.js sub errors