put the svg defs nodes into the header/footer of the compile script