Hangman, in Javascript