Use xmldom in the browser since it's missing from web workers