Refactored draggable and resizableDiv directives to emit updated property object