JSON formatted XML parser

Place in /js/xml-json.js