About half of the transition of JSDraw.cpp to the new scripting syntax is done