Update index.js

Fix missing brackets
Merge pull request #1 from andersaloof/patch-1

Update index.js