Revert "moved persistJSON call back into addSvg"

This reverts commit a2291a486a41b52f3bc758e60d30aa42227fe896.