JavaScript hangman game.