Get rid of every unnecessary dependency.  Make dxfToSvg.js and svgToKicadPcb.js standalone not depending on anything.