js client for caster game