Minor reformat of index.js