The above simulation is created with EJS. You can download EJS xml source by click the link just below the simulation.
If you have download EJS and download the jar file. You can right click in the simulation and select [b]open EJS model[/b] to view the source.