clean up index.js a smidge