adding index.js file