added Cordova thread and sync for multiple AsyncTasks