fix recent jshint warnings

as described in #598