prepare for npm, fix #1