Splitting index.js