function getDepth(node) {
    if (!node) {
        throw new Error("cannot get depth of a falsy node");
    }
    return _getDepth(node, 0);
}
Finds the depth of the given node in the DOM tree
@param {HTMLElement} node
@return {number} - the depth of the node