Uploading a file over AJAX

Does anyone have a solution for rendering javascript after an AJAX
file upload? It looks like the responds_to_parent plugin is not
compatible with Rails 3.

Thanks!
Tom