Merge pull request #1 from tarasstruk/master

packaged as node module, run tests as: npm test