Test of drag-and-drop functionality with JavaScript