Set up unit tests for JS.
Added first unit test file.
Reworked createGame to create channel, then create game.
Need to do the same for join and rejoin.