For the object properties, I was concerned about using "default" with dot notation because it's a JS reserved word. It seems like this might not be an issue with new browsers though.

I can also rename the object in JS to editorPreferenceOption to make it more clear that it correlates to the option numbers for editor preference.