Fix small typo in JavaScript docs
Merge pull request #12880 from hnrch02/patch-1

Fix small typo in JavaScript docs