update js documentation