Added partial drag and drop functionality to Javascript.