add package.json for publishing as npm