mod to index.js