Split tournament.js into separate files [fixes #47354183]