sb_controller/menus.js - first level refactoring complete.