manage draggings in web platforms (jQuery plugin)