update js document