Just a thought, this could be a `UrlHelper` method.
```
var host = UrlHelper.getHostFromUrl(dedupeId),
    fuzzyDedupeIds = [host, dedupeId];
```
```
var UrlHelper = {
  getHostFromUrl: function urlHelper_getHostFromUrl(url) {
    var a = document.createElement('a');
    a.href = url;
    return a.host;
  },
 ...
}
```