updated js documentation.