Fixed a bug where using a port number in the url would cause the test to fail.

If a url contains a port number the test would fail as e.source returns url & port when not default 80, but the test comparison is against location.hostname which does not include a port number.