hsdomain.js is needed to ensure the domain exists

This code was copied from https://github.com/phormanns/hostsharing-play/tree/master/library .
Thanks to Peter Hormanns for that!