US researchers have worked out how an ingredient found in chocolate seems to exert anti-cancer properties, findings that might be used to design new cancer treatments.