An example of how to use Mozilla Rhino to execute JavaScript within Java