reverted index.js to original