Create hangman.js

add hangman.js
The `else` needs to be on the same line as the previous `}`