jquery.getAttrs: Replace deprecated nodeName/nodeValue with Attr.name/value