Internet Explorer does not seem to populate window.location.port