A lot of minor JavaScript syntax fixes. (v1.1.2a)

Ran the .js code through JSLint and fixed most of its complaints.
Refactor code dealing with civilization size groupings.

* Introduced the 'civSizes' data structure, which stores information
relating
to the 'Thorp', 'Hamlet', ..., 'Empire' civilization sizes. There was a
lot of code special casing these sizes; the new structure allows using
iteration and relational logic on these sizes.
* The raid buttons were re-worked to use HTML5 custom data attributes.
They
should probably be generated completely dynamically; that may happen
in a future refactoring.
* Refactored some generic code into a separate file, jsutils.js.