Bug fix for postMessage with urls containing port numbers

Fixed a bug where if a url contains a port number the test would fail as e.source returns a url & port, but the test comparison is against location.hostname which does not include the port number.