migrate to moodle jquery, ugh what a pain