Drag and drop functionality using vanilla JS