A javascript implementation of hangman.