merge all to index.js