hangman game written in javascript