Changed the default for window.location.port

Fixes #739