Fixes #115 Make Node.js-compatible