simple javascript utility for converting xml into json