minor typos in index.js