CS Rest Endpoints return XML, but JSON is much cooler for working with the data in javascript, you can get the results back in JSON and actually iterate through collections and such... To convert the data to JSON, in leu of server calls to do this, Thomas Frank has posted a nice JS library to pull this off...
http://www.thomasfrank.se/xml_to_json.html
Dan