Added index.js so it can be used as an npm package.