For all the simulations created with EJS (include one of the traffic light control).
You can just click "load ejs as signed applet" button. EJS will be loaded into your browser, if you give it the permission.
And you will see all the variables defined, all the relations used. You can modify it and generate new simulations.
Certainly, you can save the ejs source file in xml format.