Honors ports on the host page

Switches window.location.hostname to window.location.host so we can support a url like example.local:3000
Merge pull request #3 from Automattic/fix/support-ports

Honors ports on the host page