I've been doing some free-time hacking on a generic solution to distributing Javascript tasks. https://code.google.com/p/mrjs
It's definitely not secure, or very reliable, but it's a start at least. (Contributions accepted!)
The worker implementation could be made generic with a little work. These people made a map reduce implementation with a similar design: http://maprejuice.com/