move to index.js