Fixed code to satisfy JSLint.