Update preferences.html and clean it up a bit