];
    var smId = segments[5];
    console.log("hostname=" + hostname);
    console.log("domain=" + domain);
    console.log("smId=" + smId);

    uniqueSmId = hostname + "/" + domain + "/" + smId;

    window.onload = register(
      "/machine/rendered/" + uniqueSmId,
      "/machine/subscribe/" + uniqueSmId
    );
  </script>
</body>

</html>