added comments to the ajax