testing the ajax function