Add example to use prefs.js