Update nodes/attrs.js

To change an attribute already defined I do:
-> removeAttribute('attrName') -> setAttribute('attrName', 'newVal').
The removeAttribute method is missing to remove the name also from attributeNames.
Cheers