Set protocol and host in link_to_hosted_javascript, for notification emails