Rewrote all instances of new XML() to use DOMParser instead of E4X