Added 90% of the hangman code to the javascript file