defunkt/dotjs — pull request #54 by jaw6 (2011-10-31 19:09:48+00:00)
Title: So's one could use this with localhost

Normally, these aren't that different:

location.host => 'github.com'
location.hostname => 'github.com'

But, location.host includes the port, if any:

location.host => 'localhost:3000'
location.hostname => 'localhost'