From http://css-tricks.com/snippets/jquery/draggable-without-jquery-ui/