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

Fixes #7072
Merge pull request #7075 from PerJensen/docs_js_issue

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