adding an index.js to expose as a better npm module