Added npm support.

Fixes #6
Merge pull request #11 from firstandthird/feature/6-npm-support

Added npm support.