change window.location.host (includes port) to window.location.hostname (without port)