Fixing JSLint errors