Fixed JSLint errors