call method to update the service URLs to global variable on document ready