Using my own data in a P5.js sketch?

If this stuff aint hard enough! i gave up trying to include p5 sketch output in the same process as my node program because of the ES6 modular design and resulted to creating a JSON file first. I believe this required the dynamic import of my file in the preload() but I got it working eventually.

Im about to learn fabric.js instead soley because its should intergrate easily with node and has SVG ability but in all fairness apart from this apparent bug in P5 and the way things are going anything done in a browser is going to require use of webpack it seems. Its still a mess in my head but I understand the benefits from ES6 modular design and why things need to be minified but for someone who just wants to get their personal graphics on a computer screen its seems overkill. Then I suppose I shouldn’t have learned a scripting language lol.