Small cosmetic improvements to index.js