discrete event simulation library for javascript