New svg code out of dom ready function