UPDATE: This plugin is no longer maintained, I recommend using the Sprockets gem.
After floating around without a proper home the javascript_auto_include plugin now has a nice cosy permanent home on Github. I’ve also added an update for Rails 2.x compatibility submitted by davidsch.
Grab the plugin from the javascript auto include github repo.