JS: pull out a helper to validate Input names
JS: pull out a helper to validate Input names

Also, use a more efficient comparision for not-allowed characters...contains()
is a bit heavyweight for this.

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

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