var extendNode = function() { var extendNode = function() { currentNode = node[i]; currentNode = node[i]; var nextNode = node[i + 1]; var nextNode = node[i + 1]; // Object containing current node, all corresponding spaces, // Object containing current node, all corresponding sp...