Update index.js

Fix missing brackets