In different threads you have to enter the context

This fixes the javascript filters as they failed with anything but trivial examples.