Replace require_js, which is gone from moodle 2.4