fix index.js copy