JS: convert the stateEntity state list to a HashMap
JS: convert the stateEntity state list to a HashMap

Lookups are very common for certain states, and some entities can have a rather
long list.

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

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