function getElementOffset(element) {
    // TODO (kangax): need to fix this method
    var valueT = 0, valueL = 0;
    do {
      valueT += element.offsetTop  || 0;
      valueL += element.offsetLeft || 0;
      element = element.offsetParent;
    } 
    while (element);
    return ({ left: valueL, top: valueT });
  }
Returns offset for a given element
@method getElementOffset
@function
@memberOf fabric.util
@param {HTMLElement} element Element to get offset for
@return {Object} Object with "left" and "top" properties