Add the hostname in the javascript