fixed lint errors in index.js