Denmark led all the way until the last laps, when Australia attack to take the rainbow jersey and the world title for the second year in a row.