small changes to readme and combined 2  var declariations in index.js