updated package to make it node.js usable