Reimplement with node.js API.
Merge pull request #9 from ivanzhaowy/master

Reimplement with node.js API.