а тут точно сравниваются host() и hostname?
[тыц](http://stackoverflow.com/questions/6725890/window-location-host-vs-window-location-hostname-and-cross-browser-compatibility)