I just tried using the "| jsonify" filter when rendering the YAML data. Using a list there renders it as a JSON array,  which looks like a lot easier to process in JS than the comma based version:
![json](https://f.cloud.github.com/assets/1376924/1609206/30f751f2-5536-11e3-9832-c5501213cc1f.png)