Adopt to node api signature change in v0.10
Merge pull request #20 from ktslwy/master

Port to node.js v0.10