Use require wrapper

This fixes the component/node interoperability (issue #1)