update js ref