Fixed JSLint warnings.