When running the following line of code WebStringGrid1.insertcolumn(WebStringGrid.colcount) it fails in release mode, (in debug mode it works fine) attached images of the error.

Looking at the definition of insertcolumn in the resulting JS there is no definition of "tr" in release mode.
I attach the project where I recreate the problem
proto insert column webstringgrid.zip (16.0 KB)