Moodle.2x mod/hotpot force HP results to be saved in Chrome and other browsers which have no onunload event