This episode is directed by Rebecca Asher, daughter of Elizabeth Montgomery (who of course played Samantha Stevens on Bewitched). In a flashback scene young Jimmy is watching Bewitched. Specifically, season 4 episode 21 "Hippie, Hippie, Hooray". The clip playing is Samantha, posing as Serena, singing the If'n song.