Update preferences.js

Remove unused elemnts