Fixed formatting of index.js and made README consistent.