Update nodes/attrs.js

Since it is not possible to set duplicate attributes on a Tag to change an attribute already defined I do:  removeAttribute('attrName') and then setAttribute('attrName', 'val').
The removeAttribute method is missing to remove the name also from attributeNames.
Cheers