[js] typed arrays: update documentation regarding new constructor
[js] typed array: add test for array constructor