See https://github.com/cujojs/most
Based on https://github.com/cujojs/most/tree/master/examples/drag-n-drop
Modified to be run on http://requirebin.com/ (replaced module.exports assignment with an IIFE).
See cujojs/most#146 for a detailed explanation.