fixes

Declared variables globally so that all functions have access to
variables.

Couple things not working. When user answers correctly, text is not
being pushed to html. Input validation needs more work. Get rid of user
input when user restarts the game.