split the big index.js to mutil files