fixed JSON section to load from cookies and be auto-formatted