fixed error in TopBar JS