fixed build script and published to npm