Clean code with jsLint review