update js connection location