Thermal Processing of Jupiter-family Comets during Their Chaotic Orbital Evolution