modify the js of index.js