JS: modify 'setDefaultValue' to reset the input to its new default state
JS: modify 'setDefaultValue' to reset the input to its new default state

Previously, the code assumed that the input was already in its default
state and that only the value needed to be changed.

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

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