api.js to index.js
Added package.json