refactory index.js
update