docs(js): corrects function name to shim AMD modules

Fixes #7072