determine environment from the domain
javascript, not coffeescript
self-adjusting iframe