restored index.js