minor changes to index.js
merge