Code cleanups for issues found with JSLint.