Javascript client to TicTacToe