Clean up index.js