this is jQuery plugin. You can use this to implement drag to trash.