Have a look at the example coming with the JQuery functional test suite:
JQRepeatingFunctionalTest>>#renderContentOn: html
html paragraph
script: (html jQuery this load
html: [ :r | self renderTimeOn: r ];
interval: 1 seconds);
with: [ self renderTimeOn: html ]
The example is running here.