Fixes JSLint warnings