fixed xml parsing for chrome browsers

xmldocument.parseString fails for amtd repsonse.  Instead i'm placing
the string a javascript object. the 0 element of javascript is an html
document.  This is parsable by the xmltojson function.