Update jshint and adjust code.