Fix addMenu
Remove extra $id
Add delay for menu
Add parens
Simplify menu events
Use const timeout
Fix ajax violation on Firefox