Added npm support.

Fixes #6