Merged population.js into main.js and not calling population.js from html.

First step in fixing the usage of global variables. Statistics.js looks
good, except for those 3 global arrays that don't look like they're being
used at all.

Ran an auto-formatter on main.js, I don't like tab characters. I use 4
spaces instead of tab characters, notepad++ has an option for that
somewhere.
Changing global variables to be locally scoped to the function.

Having functions that change global varibales makes it hard to reason
about what effects a function will have when a function it calls changes
something globally.
Additional formatting for readbility.

Adding a space after ',' in function variable lists.

Adding a space after ':' in object member assignment.

Spaces around '==', '=', '+', '-' and other similar operators where more
or less feels appropriate.

Space after between the closing ')' and the opening '{' in function
declarations.

Possibly others that I've forgotten to mention.
Ident all the stuff because it's all in a function.