Making mediaserverjs work from a dedicated server

Having 127.0.0.1 meant connecting to mediaserverjs from another machine
would break it.  Document.domain gives more flexibility.