Upgrading node.extend