Changed deprecated nodeValue to value

Chrome showed console warnings that `nodeValue` is deprecated, so I changed it to `value` as the suggested.