Fixed some JSLint problems.