added package.json and register.js files