Merge pull request #7 from olegabr/master

Fixes node.js errors