add nodeRequire. Fixes #559