I think it is worthy to add the statement of:
el.id = surfaceElement.id;
in function "CanvasRenderingContext2D_" at line 288.
CHEN SEI-LIM