As far as what Ruby offers over JavaScript? It's a bit personal preference, but I prefer Ruby for several reasons:
- More stable ecosystem. There are more canonical "best" tools for the job. There's one dominant web framework, one dominant background job processor, one dominant task runner, debugger, testing framework, etc.
- More robust standard library. Enumerable rocks. And rolls.
- Better fits "OO" definitions—everything is an object in Ruby. It supports public/private/protected instance methods/variables.
JavaScript is now a general language, but maybe the most popular DSLs break out of that once they've gained a certain mindshare, at which point they're no longer a DSL.
Are you sure all Ruby frameworks use the same "path w.r.t. metaprogramming" as Rails? It's been a while since I looked at them but I recall many priding themselves in the difference back then.