Fixed some JSLint errors