Hangman Game in JS