Fix jshint warnings introduced in #308.