[JES] Load new endpoint from cookie on startup instead of getting it from localStorage See merge request !91