adjust index.js