fix(amd): removed elgg_require_js for backwards compatibility

elgg_load_js is used instead. Defining a javascript sync or async is
done in elgg_register_js.

Fixes #6496