Fixed problems with npm package.