Fix a bug where you automatically win by entering text instead of a number
Add comments to javascript