activeTasks function should return the XMLHTTPRequest