Fix some JSLint warnings