correct jsLint warnings