Update index.js

wrong "}"