We're doing that too, but that's the boring part. That's just running client-side code on the server. It's still client-side code. You can do that in Rails too. See my other comment for more details.
If you are running client side code on the server you use a very different definition of client side code than most other people, which is bound to be confusing.