updated index.js
fixed conflict