Add support for npm

It would be great if you could also provide this library on [npm](https://npmjs.org). If you merged this pull request you would just need to run `npm publish` to publish this library to the npm registry.