Update scripts/hangman.js

changed the format so it can work
Merge pull request #204 from ElementsPO/patch-3

Update scripts/hangman.js