Moved setAttributeHandler init to Node class