Added an ajax request example.
Fixed the ajax example.