Fixes for JSLint