Adapted to jshint standard