Add missing semicolons to `index.js`

Spotted some missing semicolons reading through the code.