mod: changed to suit Opera 15
mod: load / save prefs to localStorage