What were the factors that led to Kennedy's victory over Nixon?

During the campaign, the first televised debate occured in U.S. histroy. Those who watched it believed that Kennedy won based on appearance as Nixon seemed sweaty and nervous, thus seemingly lying when he spoke of the issues. Those who listened on the radio believed that Nixon won it based on the clarity of his voice and overall strength of his speaking skills compared to Kennedy. But this was the beginning of the media led elections and thus Kennedy as a younger and more attractive candidate, fostered more hope than Nixon. It also helped that Kennedy was a just an overall more likeable personality than Nixon.