JSHint: restructuration de code