Traverse Json to YAML with jQuery