Update documentarray.js

Fixed typo
Merge pull request #1850 from gh-naylor/patch-1

Update documentarray.js