changed index.js