added require.main to node.js

it was missing