Hangman Javascript Problem