Old-school RPG menu in JavaScript