Simplified Code

theRanges array — to “.each()”