can we make it protocol-relative, i.e.

```
 var url = "//beacon." + window.location.hostname,
```