Update index.js

Added exports.