Update index.js

The change witch I have suggested in the #3.
Merge pull request #9 from thiagomata/patch-1

Update index.js