Juventus overcame the earliest of setbacks to beat 10-man AC Milan 3-2 and join Napoli in keeping runaway Serie A leaders Roma in check.