modif code to pass jshint