Fixes node.js errors
Merge pull request #7 from olegabr/master

Fixes node.js errors