simple hangman clone in javascript