fix small bug when using on node.js
Merge pull request #24 from sebpiq/master

Fixed small bug when using on node.js