moved persistJSON call back into addSvg