run the simulation on initial load
replace ? : with || as per ECMA-262 section 11.11