switch to new index.js