wrap dragging instructions to $.each… callback