Fixed issues uncovered by gjslint.