adding main field

- main field is necessary to allow requiring the module in node.js