JS: refactor repeated anonymous classes into a named Class
JS: refactor repeated anonymous classes into a named Class

Applying a simple argument to a Simulation keyword accurs more than a few
times, pull out an inner class for this use, kills 6 anonymous inner
classes.

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

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