more index.js changes