Simplifies javascript game client initiation logic.