Use `window.location.protocol` to set url prefix instead of `//`.

This prevents problems with ESRI's `PrintTask` class.