Used co for synchronous ajax calls