squashed bug in swapContainingDivs