Window.location does not include port number in BrowserNG/7.1 (Known Issue)
How to reproduce
Create a HTML page on a server running some other port than 80:
Fixed in upcoming firmware updates.
url = window.location.protocol + "//" + window.location.host + window.location.pathname +