Updated host to look for empty string in hostname instead of host

For #60. This change shouldn't matter, as it resolves to window.location.hostname regardless, but changed it from window.location.host to window.location.hostname for consistency's sake.