adding package json and publishing the npm package