Refactor rain60.js to call d3.csv as callback style, and move function formatDate to local scope.