bind drag events to $document

$body won't receive mouseup if the cursor is outside the browser window, $document does