puting some json_encodes around the edit thread after feedback from tassos that it was breaking with single qotes.
should really do this better, everywhere...