javascript object to xml converter