An AsyncTask implementation for Javascript, similar to Android's AsyncTask.