It is a java simulation. There is no javascript used in the above applet.
Java and Javascript are not the same (or similar at all).