Fix tournaments.js sub errors
Merge pull request #643 from TheUnknownOne/master

Fix tournaments.js sub errors