javascript for games vs game