Fix problems reported by jshint.