BPMN xml parser and display in js