Import dom namespace, fix stuff.