Replaced .data with .nodeValue for consistency