JavaScript exercise: drag and drop