Fixed some JSLint issues