used existing index.js file