adding module export for use in node
updating the package.js