charts jshint warning fix