RJS Dynamic Javascript update on page

Using RJS is it possible to update the javascript code within the "

But on subsequent access the var still has value “hello”.

Any suggestion on this will be highly appreciated.

Thanks