JS: duplicate table building loop rather than building larger list
JS: duplicate table building loop rather than building larger list

Traverse the retired Event list and the pending events in two phases to
avoid building a large arraylist each time.

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

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