adding npm package.json  and source js files