Changes to index.js and readme