dynamic svg storage in js