Update jspsych-html.js

Fixed several issues that prevented this plugin from working. I've never actually made a contribution to somebody else's code, or used GitHub much, or frankly have much experience with Javascript. I'm learning as I go. If I'm not following the correct pull procedure or etiquette, please let me know!