clean up index.js and get rid of random comments and whatnot that don't really contribute to understanding the code