The above simulation was created/generated with [url=http://www.um.es/fem/EjsWiki/]EJS[/url].
You can download the EJS source from the above link (You need to login to the forum) and open it with EJS.