HTML5 client code for TigerGammon Server (TGS)