sperate index.js