A JavaScript battle game