Update index.js

The change which I have suggested in the #3.