added package.json and publish to npm registry.