Comment the drag and drop global handler to avoid performance issues:
a.on("mousedown",c),a.on("mousemove",d),a.on("mouseup",f),/*b.bind(h,"mousemove",d),*/b.bind(h,"mouseup",g),a.on("remove",function()