JSLint assumes browser unless otherwise configured

This is a fix for #3269 which assumes the browser environment for JSLint unless JSLint is configured otherwise.