Fixed JSLint problems