The harmonies are what jazz musicians called 'rhythm changes'—in other words, loosely based on the chord progression in George Gershwin's song 'I Got Rhythm.' This is the same formula that Duke Ellington had used in 'Cotton Tail,' Thelonious Monk in 'Rhythm-n-ing,' and Dizzy Gillespie in 'Anthropology,' to cite just a few examples (there are hundreds of others). This was a sly inside joke. TV viewers don't notice chord changes, but Hollywood musicians found this adaptation very amusing.