JavaScript G-Code Translate, Scale, and Rotate

(Notes: Rotate coming soon. Scale will happen before Translate. "I,J" will scale with "X,Y" )
X-Scale: Y-Scale: Z-Scale:
X-Translate: Y-Translate: Z-Translate:
Input

Output