Fixed several minor JSLint warnings