function getRootNode (node) {
  return (typeof node.getRootNode === 'function')
    ? node.getRootNode()
    : window
}
Node.getRootNode shim
@param  {HTMLElement} node node to check
@return {HTMLElement}      node's rootNode or `window` if there is ShadowDOM is not supported.