fix JSLint errors, prefs id, license