Update FoldersToJSON

Fully functional now. Just feed the output to some hungry D3.