Fixes some JSLint complaints