DOMParser isn't supported in WebWorks, try different approach