Update index.js

missing r!
Merge pull request #2 from nexxy/patch-1

Update index.js