Update index.js

Fixed minor typo
Merge pull request #40 from alecxe/patch-1

Fixing the typo in index.js