[refactor] index.js