function inNodeList(nodeList, node) {
  for (var i = 0; i < nodeList.length; ++i) {
    if (nodeList[i] === node) {
      return true;
    }
  }
  return false;
}
@param {!NodeList} nodeList to search
@param {Node} node to find
@return {boolean} whether node is inside nodeList