Fixed lots of jshint warnings in template_defaults.js.