Dropdown jquery menu, console errors fixes