Improved stability for Client.js

Improved some issues with starting an online battle.