A simple game of Hangman written in JavaScript