Do you mind if I adapt some of these for JSxCAD? You can see a couple of existing example projects here. https://github.com/jsxcad/JSxCAD/wiki