Fixed JSLint warnings