fixed index.js exports for node.js