js emulation of starcraft