getDimentions (element) {
    if (!element || element.length === 0) {
      return;
    }

    var computedStyles = window.getComputedStyle(element);

    var margin = {
      top: parseInt(computedStyles.getPropertyValue('margin-top'), 10),
      left: parseInt(computedStyles.getPropertyValue('margin-left'), 10),
      right: parseInt(computedStyles.getPropertyValue('margin-right'), 10),
      bottom: parseInt(computedStyles.getPropertyValue('margin-bottom'), 10)
    };

    var padding = {
      top: parseInt(computedStyles.getPropertyValue('padding-top'), 10),
      left: parseInt(computedStyles.getPropertyValue('padding-left'), 10),
      right: parseInt(computedStyles.getPropertyValue('padding-right'), 10),
      bottom: parseInt(computedStyles.getPropertyValue('padding-bottom'), 10)
    };

    return {
      width: element.offsetWidth,
      height: element.offsetHeight,
      margin,
      padding
    };
  }
Get dimentions of a given element
@param  {node}   element Element to find dimentions of
@return {object}         Dimentions of object