fix equality check

compare DOM object to DOM object
not jQuery object to DOM object
handled nested draggable elements