Captionize is a project mainly written in RUBY and JAVASCRIPT, it's free.
A sample Ruby on Rails project for experimentation