node.js compatibility
Merge pull request #1 from dhinus/master

node.js compatibility