Added package.json and code for commonjs