Optimising the code trough JSLint.