Simulation Environment for the JavaScript Agent Machine