JavaScript Implementation of Simulation Time