Make window.location.host and location.hostname writable