fixed: reset button works again (but breaks automatic of the menus)
moved function eG_updatePrefs() to preferences.js and removed its parameter