Hangman Game with ArcGIS JS API