Update index.js

Remove duplicated lines.
Merge pull request #1 from k-j-kleist/patch-1

Update index.js