corrected some issues with elbow errors, that resulted from replacing JXON.js with xml2json.js