Fix JSLint problems