break up index.js