Gem/Plugin to Convert Ruby Regexp to Javascript Regexp?

Just a quick question or maybe a suggestion, is there a gem/plugin that will convert ruby regexp to javascript regexp?

Thanks

I would also find this incredibly useful.

Thanks,

Francisco