Example code for Build Your Own AJAX Web Applications book