Fixed errors found by JSLint.