modify the js of index