remove some node.js specifics from browser version of xml.js