Update jspsych-html.js

Fixed several issues that prevented this plugin from working.