Add the code for the ajax example