Revert "Update index.js"

This reverts commit 618d71f39ccb4e72f1ae57c1f99d5a2351901543.
Revert "Revert "Update index.js""

This reverts commit 93890d64ddb7393974baed160361cf50809c6553.