Don't understand what you mean by different name.

The horizontal nav bar (menu) has for ex. Home, expand, etc., left to right.

The vertical single button had the name "menu 1", until I placed it on the web page. It now reads "Home". Code to load the two .js files are in seprate folders positions on the page(one is in a div & one is not).

I did a test and changed the Home button name, the single button changed also.

Code:
Horizontal bar;
<script type="text/javascript" src="../images/NavBar/xaramenu.js"></script>
<script type="text/javascript" src="../images/NavBar/egypta.js"></script>

Vertical button;
<script type="text/javascript" src="../images/LeftNavBar/xaramenul.js"></script>
<script type="text/javascript" src="../images/LeftNavBar/egyptal.js"></script>