add package.json and register on npm