make ajax call as async