Update services.js

Update configureUrl function