A new forum question appended to an existing question is often overlooked and not answered. If you want an answer, consider opening a new topic. I do not use Estlcam nor Cnc.js, so I cannot give you an answer.
I’ve seen this kind of functionality on laser engravers (camera detects rotation and position of stock), but I suspect it is implemented in conjunction with firmware support. In particular, some CNC firmware versions support G68 g-code, which rotates the coordinate system around a specified point. Marlin does not implement G68.
Consider using alignment pins or rules to keep your stock square to the machine. If the router is used to create the sockets for the alignment pins, and to contour cut the edges of the rules, any stock pushed against them will be square to the machine.