Update preferences.js