JS: when writing out the cfg file, fix the define statements to use the correct key
JS: when writing out the cfg file, fix the define statements to use the correct key

The key is the input name of the ObjectType, not the class name.

Signed-off-by: Harvey Harrison <eadbd6b462bf3c97df0300a934c12bc2e5d1fe51@ausenco.com>

jaamsim/jaamsim,jaamsim/jaamsim,jaamsim/jaamsim,jaamsim/jaamsim