Dynamic host and port configuration in customer and associate facing js.