mouseupHandler = function (event) {
            $(window).unbind("mousemove", handler);
            $(window).unbind("mouseup", mouseupHandler);
        }
Helper for attaching drag-related mouse listeners to an element. It's up to
'handler' to actually move the element as mouse is dragged.
@param {!function(jQuery.event)} handler  Called whenever drag position changes