Make _SetServerUrl.js generic