Fix broken loading of menu items in Firefox (rare ocasion)
- This reverts commit 6f670be.
- Thanks to thera for report and @trepatudo for var defining so jshint doesn't spill errors