Refactored element droppable functionality to jquery plugin