update index.js and min.js