Minor main.js refactor.

Mod:
	main.js
		-Remove unnecessary `var`s, and conform D3 chained function-calls to
		the common formatting (one function call per line).