reverted index.js