Updates to preferences.js