async call to server without 3rd party libraries