JS: do not add unprintable characters to a Text object
JS: do not add unprintable characters to a Text object

Under OSX, pressing the shift key added an unprintable character to the
contents of a Text object.

Signed-off-by: Harry King <409587b9e6671aa0763646191d292852dc49a658@gmail.com>

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