You can't just use icon here because it might be a relative path to the server.  You need to make sure `sourceUri` gets passed into this funciton and then do something like

```
var icon = getStringValue(node,'href');
if (defined(sourceUri)) {
    var baseUri = new Uri(document.location.href);
    sourceUri = new Uri(sourceUri);
    icon = new Uri(icon).resolve(sourceUri.resolve(baseUri)).toString();
}
```

You can require in `../ThirdParth/Uri` for the Uri object.