"a charm, a spell" (17c.), originally "wryneck" (also jynx), a bird used in witchcraft… See origin and meaning of jinx.