fixing drag functionality in drag-and-drop.js