Update index.js

should be "if"
Merge pull request #1 from hexelon/patch-1

Update index.js