Moodle.2x mod/hotpot slight alteration to logic in locate_js_block(), and new js function HP_remove_listener to remove js event handlers