A Sinatra-based tutorial of jQuery's AJAX functionality