Fixed JSLint issues.