Clean code by JSHint