Fixed issues found by gjslint.