moving JSDOM SVG patches to the appropriate place