Update index.js

Improved readability a bit.