Executing javascript in the responseText

Hi,

Is there a way of executing javascript in the responseText?

I have a controller action that sends some javascript as part of a partial to the browser. But it won't get executed after the browser receives it. One option is to use RJS but I am reusing this same partial in other places. So I can't replace this partial with an RJS. Do I have any other options?

Thanks -subbu