Fixed jshint warnings.

Apparently jshint stops working if it's not installed!
... Silly Node.js upgrades.
Territory control overlay

* Also IE9 compatibility and some minor fixes.