Rubylets is a rails application that makes it easy to take normal ruby scripts and put them online with slick ajax input and output and minimal change to the script code.
(It isn't written mostly in Javascript, that's just the included libraries. It's a side-effect of Rubylets' batteries-included approach.)