cleaned up class inheritance for menu.js elements