I prefer simple if statements myself.

What about something like this?
```javascript
url = "http://" + checkUrl.source;

if ( checkUrl.protocol === "https" ) {
  url = "https://" + checkUrl.source;
}
```