JavaScriptGenerator in separate .js file, not a view

Is it possible to get some code with JavaScriptGenerator to be rendered in a separate .js file, not just put in a view with <script ...>   code   code   code </script>

Is this possible?

I haven't found any info on this topic, my guess is that this is not possible, but I wanted to make sure.

How about if you had a separate action (and probably controller) that just rendered some rjs ?

Fred