Revert "Update index.js"

This reverts commit caf8a20804738c1072296a77c89ca0ec9fbc4f3c.
Revert "Revert "Update index.js""

This reverts commit fbb06d6da59f436d8d4a497bfdadfe36ee7fd56a.