Use reduce method for getting occ indices
Use native JS Promise for async