Corrects issues uncovered by gjslint and jshint.