Modified to use capturing phase for drop and event.defaultprevent