Hangman Game written in Javascript