code: function (node) {
      var x = document.documentElement.offsetLeft,
          y = document.documentElement.offsetTop;
  
      if (node.offsetParent || document.body) {
          do {
              x += node.offsetLeft;
              y += node.offsetTop;
          } while (node = node.offsetParent);
      }
  
      return {x: x, y: y};
  }
docs: ------------------------------------------------------------------------
  Utilities
  ------------------------------------------------------------------------
   Get element offset position