Add prefs.js support