Using doc.location.host instead doc.URL