jshint: fix ugly errors