A score system for a text-based game written in JavaScript.