Rails with javascript

hello list

In main controller I have method find I have array @vector, I have
find.rjs
this
page.replace_html ‘teletipo’, :partial=>‘bolsa’, :collection => @vector

I pass @vector

but I want include javascript code, but i don´t know where do it

any idea