menu: Cross-browser compatibility

Close #854