Hangman snipte made with JavaScript