Fix some JSLint issues