clean up index.js