A swiss tournament system built in javascript