Fixed: prefs was reset at startup
Use `js_beautify` as external script instead of module
prefs