This page contains the trojan Java applet. You can edit the parameters below and see how it influences the motion of the 3rd body (only these parameters can be edited since it is a demonstration of the trojan asteroids and not of arbitrary 3-body systems).
This file together with the Java applet is published under the GPL. There also is a tutorial available.