adapted to jshint config