Update index.js

The change witch I have suggested in the #3.