Fix npm support

Fix gh-4
0.3.1