Fixed some JSLint warnings