Prototype is the Javascript library that comes with Ruby on Rails and it makes AJAX programming clean and easy. It’s nicely organized and adds very useful functionality to Javascript for manipulating DOM objects.
I rewrote an AJAX application using it and it simplified my code by about an order of magnitude.