[javascript] add half-baked game script.