Use window.location.port to make it easier to run tests locally (on servers running on non-80 ports)