Added exports to node.js and require.js