Danks' homer helps White Sox beat Cubs