code: function getTextOfNode(node) {
          var result;
          if (node != null && node.childNodes[0]) {
              result = node.childNodes[0].nodeValue;
          } else if (node != null) {
              result = "";
          }
          return result;
      }
docs: This function retrieves the current value for node.
  @param node {Node} Node for which we want to retrieve the value.
  @returns {String} Text value of the node.