HTML5 javascript network game