Clean up index.js

Add missing semicolons, change `argv["log"]` to dot notation, and remove unused variable `csv`.