Fix jshint and other minor issues.