Fixed some JSLint issues.