updated graph update js