- convert XML to JSON in javascript