Use prefs.definePreference for JSLint